﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WinFormsCommands
{
	public class CommandContext
	{
		public CommandContext(CommandProcessor processor)
		{
			Processor = processor;
		}

		CommandProcessor Processor;

		public object Model { get; set; }

		public CommandResult View(string view, object model)
		{
			return new CommandResult
			{
				View = view.ToLower(),
				Model = model
			};
		}
	}
}
